n = int(input())
h = 100.0
s = h
for i in range(n-1):
    h = h/2
    s += h*2

print("%.4f" % (s))
print(f"{s:.4f}")
